package com.xinruke.hostels.central.manage.interfaces.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @ClassName OrganizationQueryResultDTO
 * @CreateDate 2019/6/13
 * @Author FengXinQiang
 * @Version V1.0.0.0
 * @Decription 组织架构查询结果响应
 */
@ApiModel("组织架构查询结果响应")
@Data
public class OrganizationQueryResultDTO {
    @ApiModelProperty("id")
    private Integer id;

    /**
     * 名称
     */
    @ApiModelProperty("名称")
    private String mingcheng;

    /**
     * 描述
     */
    @ApiModelProperty("描述")
    private String miaoshu;

    /**
     * 排列顺序
     */
    @ApiModelProperty("排列顺序")
    private Integer pailieshunxu;


    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date chuangjianshijian;

    /**
     * 父机构id
     */
    @ApiModelProperty("父机构id")
    private Integer fujigouId;

    @ApiModelProperty("创建人id")
    private Integer chuangjianrenId;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date gengxinshijian;

    @ApiModelProperty("更新人ID")
    private Integer gengxinrenId;


    @ApiModelProperty("下级部门")
    private List<OrganizationQueryResultDTO> subOrgDtoList = new ArrayList<>();

}
